/****************************************************
          File Name:10-3.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 23 Dec 2014 02:37:10 PM CST
*****************************************************/

#include "10-3.h"

int main()
{
    using std::cout;
    using std::cin;
    using std::string;

    golf mygolf = golf("abby", 100);
    mygolf.showgolf(mygolf);

    //char name[40];
    string name;
    int icap;

    cout << "Enter fullname: ";
    //cin.getline(name, 40);
    getline(cin, name);
    cout << "Enter handicap: ";
    cin >> icap;
    mygolf.setgolf(name, icap);
    mygolf.showgolf(mygolf);

    cout << "Enter handicap to change: ";
    cin >> icap;
    mygolf.sethandicap(icap);
    mygolf.showgolf(mygolf);

    return 0;
}
